package com.ruoyi.project.chargesystem.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.Date;
import java.util.List;

//挂号表（看病就诊）
public class CharMedReg extends BaseEntity {
    //挂单号ID----regId
    private String regID;
    //患者姓名----patiName
    private String patiName;
    //挂号科室----regDepts
    private String regDepts;
    //接诊医生-----regDocter
    private String regDocter;
    //挂号费用----regPrice
    private Double regPrice;
    //流水编号（当前号数+1）----regNum
    private Integer regNum;
    //状态----regStatus
    private String regStatus;
    //就诊日期---- regSdate
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date regSdate;
    //挂号类型----regType
    private String regType;
    //挂号时段----regTime
    private String regTime;
    //挂号时间----regRdate
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date regRdate;

    //病例对象
    private CharMedCase charMedCase;
    //病例-药用处方表
    private List<CharMedCaseMedical> list;

    public List<CharMedCaseMedical> getList() {
        return list;
    }

    public void setList(List<CharMedCaseMedical> list) {
        this.list = list;
    }

    public CharMedReg(String regID, String patiName, String regDepts, String regDocter, Double regPrice, Integer regNum, String regStatus, Date regSdate, String regType, String regTime, Date regRdate, CharMedCase charMedCase) {
        this.regID = regID;
        this.patiName = patiName;
        this.regDepts = regDepts;
        this.regDocter = regDocter;
        this.regPrice = regPrice;
        this.regNum = regNum;
        this.regStatus = regStatus;
        this.regSdate = regSdate;
        this.regType = regType;
        this.regTime = regTime;
        this.regRdate = regRdate;
        this.charMedCase = charMedCase;
    }

    public CharMedReg(String regID, String patiName, String regDepts, String regDocter, Double regPrice, Integer regNum, String regStatus, Date regSdate, String regType, String regTime, Date regRdate, CharMedCase charMedCase, List<CharMedCaseMedical> list) {
        this.regID = regID;
        this.patiName = patiName;
        this.regDepts = regDepts;
        this.regDocter = regDocter;
        this.regPrice = regPrice;
        this.regNum = regNum;
        this.regStatus = regStatus;
        this.regSdate = regSdate;
        this.regType = regType;
        this.regTime = regTime;
        this.regRdate = regRdate;
        this.charMedCase = charMedCase;
        this.list = list;
    }

    public CharMedReg() {
    }

    @Override
    public String toString() {
        return "CharMedReg{" +
                "regID='" + regID + '\'' +
                ", patiName='" + patiName + '\'' +
                ", regDepts='" + regDepts + '\'' +
                ", regDocter='" + regDocter + '\'' +
                ", regPrice=" + regPrice +
                ", regNum=" + regNum +
                ", regStatus='" + regStatus + '\'' +
                ", regSdate=" + regSdate +
                ", regType='" + regType + '\'' +
                ", regTime='" + regTime + '\'' +
                ", regRdate=" + regRdate +
                ", charMedCase=" + charMedCase +
                '}';
    }

    public String getRegID() {
        return regID;
    }

    public void setRegID(String regID) {
        this.regID = regID;
    }

    public String getPatiName() {
        return patiName;
    }

    public void setPatiName(String patiName) {
        this.patiName = patiName;
    }

    public String getRegDepts() {
        return regDepts;
    }

    public void setRegDepts(String regDepts) {
        this.regDepts = regDepts;
    }

    public String getRegDocter() {
        return regDocter;
    }

    public void setRegDocter(String regDocter) {
        this.regDocter = regDocter;
    }

    public Double getRegPrice() {
        return regPrice;
    }

    public void setRegPrice(Double regPrice) {
        this.regPrice = regPrice;
    }

    public Integer getRegNum() {
        return regNum;
    }

    public void setRegNum(Integer regNum) {
        this.regNum = regNum;
    }

    public String getRegStatus() {
        return regStatus;
    }

    public void setRegStatus(String regStatus) {
        this.regStatus = regStatus;
    }

    public Date getRegSdate() {
        return regSdate;
    }

    public void setRegSdate(Date regSdate) {
        this.regSdate = regSdate;
    }

    public String getRegType() {
        return regType;
    }

    public void setRegType(String regType) {
        this.regType = regType;
    }

    public String getRegTime() {
        return regTime;
    }

    public void setRegTime(String regTime) {
        this.regTime = regTime;
    }

    public Date getRegRdate() {
        return regRdate;
    }

    public void setRegRdate(Date regRdate) {
        this.regRdate = regRdate;
    }

    public CharMedCase getCharMedCase() {
        return charMedCase;
    }

    public void setCharMedCase(CharMedCase charMedCase) {
        this.charMedCase = charMedCase;
    }
}
